import math
def more_zero(a,less):
    for i in range(0,less+1):
        a.insert(0,0)
    return len(a)

def minus(a,b):
    less=abs(len(a)-len(b))
    long=0
    if(a>b):
        long=more_zero(b,less)
        a.insert(0,0)
    else:
        long=more_zero(a,less)
        b.insert(0,0)
    ans=[]
    for i in range(0,long): ans.append(0)
    print(ans)
    more=0
    for i in range(long-1,0,-1):
        an=int(a[i])-int(b[i])-more
        more-=1
        if(an<=0):
            an+=10
            if(ans[i-1]==0):
                ans[i-1]=10
                more+=2
            else:
                more+=1
        ans[i]=an
    print(ans)

a,b=list(input()),list(input())
minus(a,b)